package com.liangplus.elasticsearch.entity.pojo;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * t_user
 * @author 
 */
@Data
public class UserP implements Serializable {
    /**
     * 用户 编号
     */
    private Long userId;

    /**
     * 登录名
     */
    private String lgnNm;

    /**
     * 登录 密码
     */
    private String lgnPwd;

    private String drawPwd;

    /**
     * 昵 称
     */
    private String pNm;

    private String simplePNm;

    /**
     * 真实 姓名
     */
    private String realNm;

    /**
     * 1男0女
     */
    private Byte sex;

    /**
     * 手机号
     */
    private String pho;

    /**
     * 证件号码
     */
    private String idcrd;

    /**
     * 证件 类型
     */
    private String idTyp;

    /**
     * 邮箱
     */
    private String mail;

    /**
     * 头像
     */
    private String pic;

    private String orgPic;

    /**
     * 第三方登录token
     */
    private String thirdLgnTkn;

    /**
     * 注册 时间
     */
    private Date regTm;

    /**
     * 推荐人 编号
     */
    private Long refId;

    /**
     * 用户 状态
     */
    private Short userStat;

    /**
     * 最后修改时间
     */
    private Date lstUpdTm;

    private Date lastUseTm;

    private Short drawCnt;

    private Short maxDrawCnt;

    private String trackId;

    private Long refTrackId;

    private Boolean ifLockDraw;

    private String lockInstruction;

    private Boolean pNmEncrypt;

    private String deviceCode;

    private Short subscribeCount;

    private Short dailyMaxTrackBonusesCnt;

    private Boolean ifFsdReg;

    private Short gameId;

    private Short inviteDeviceNoAlikeTotal;

    private Short adsenseId;

    private static final long serialVersionUID = 1L;



    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        UserP other = (UserP) that;
        return (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getLgnNm() == null ? other.getLgnNm() == null : this.getLgnNm().equals(other.getLgnNm()))
            && (this.getLgnPwd() == null ? other.getLgnPwd() == null : this.getLgnPwd().equals(other.getLgnPwd()))
            && (this.getDrawPwd() == null ? other.getDrawPwd() == null : this.getDrawPwd().equals(other.getDrawPwd()))
            && (this.getPNm() == null ? other.getPNm() == null : this.getPNm().equals(other.getPNm()))
            && (this.getSimplePNm() == null ? other.getSimplePNm() == null : this.getSimplePNm().equals(other.getSimplePNm()))
            && (this.getRealNm() == null ? other.getRealNm() == null : this.getRealNm().equals(other.getRealNm()))
            && (this.getSex() == null ? other.getSex() == null : this.getSex().equals(other.getSex()))
            && (this.getPho() == null ? other.getPho() == null : this.getPho().equals(other.getPho()))
            && (this.getIdcrd() == null ? other.getIdcrd() == null : this.getIdcrd().equals(other.getIdcrd()))
            && (this.getIdTyp() == null ? other.getIdTyp() == null : this.getIdTyp().equals(other.getIdTyp()))
            && (this.getMail() == null ? other.getMail() == null : this.getMail().equals(other.getMail()))
            && (this.getPic() == null ? other.getPic() == null : this.getPic().equals(other.getPic()))
            && (this.getOrgPic() == null ? other.getOrgPic() == null : this.getOrgPic().equals(other.getOrgPic()))
            && (this.getThirdLgnTkn() == null ? other.getThirdLgnTkn() == null : this.getThirdLgnTkn().equals(other.getThirdLgnTkn()))
            && (this.getRegTm() == null ? other.getRegTm() == null : this.getRegTm().equals(other.getRegTm()))
            && (this.getRefId() == null ? other.getRefId() == null : this.getRefId().equals(other.getRefId()))
            && (this.getUserStat() == null ? other.getUserStat() == null : this.getUserStat().equals(other.getUserStat()))
            && (this.getLstUpdTm() == null ? other.getLstUpdTm() == null : this.getLstUpdTm().equals(other.getLstUpdTm()))
            && (this.getLastUseTm() == null ? other.getLastUseTm() == null : this.getLastUseTm().equals(other.getLastUseTm()))
            && (this.getDrawCnt() == null ? other.getDrawCnt() == null : this.getDrawCnt().equals(other.getDrawCnt()))
            && (this.getMaxDrawCnt() == null ? other.getMaxDrawCnt() == null : this.getMaxDrawCnt().equals(other.getMaxDrawCnt()))
            && (this.getTrackId() == null ? other.getTrackId() == null : this.getTrackId().equals(other.getTrackId()))
            && (this.getRefTrackId() == null ? other.getRefTrackId() == null : this.getRefTrackId().equals(other.getRefTrackId()))
            && (this.getIfLockDraw() == null ? other.getIfLockDraw() == null : this.getIfLockDraw().equals(other.getIfLockDraw()))
            && (this.getLockInstruction() == null ? other.getLockInstruction() == null : this.getLockInstruction().equals(other.getLockInstruction()))
            && (this.getPNmEncrypt() == null ? other.getPNmEncrypt() == null : this.getPNmEncrypt().equals(other.getPNmEncrypt()))
            && (this.getDeviceCode() == null ? other.getDeviceCode() == null : this.getDeviceCode().equals(other.getDeviceCode()))
            && (this.getSubscribeCount() == null ? other.getSubscribeCount() == null : this.getSubscribeCount().equals(other.getSubscribeCount()))
            && (this.getDailyMaxTrackBonusesCnt() == null ? other.getDailyMaxTrackBonusesCnt() == null : this.getDailyMaxTrackBonusesCnt().equals(other.getDailyMaxTrackBonusesCnt()))
            && (this.getIfFsdReg() == null ? other.getIfFsdReg() == null : this.getIfFsdReg().equals(other.getIfFsdReg()))
            && (this.getGameId() == null ? other.getGameId() == null : this.getGameId().equals(other.getGameId()))
            && (this.getInviteDeviceNoAlikeTotal() == null ? other.getInviteDeviceNoAlikeTotal() == null : this.getInviteDeviceNoAlikeTotal().equals(other.getInviteDeviceNoAlikeTotal()))
            && (this.getAdsenseId() == null ? other.getAdsenseId() == null : this.getAdsenseId().equals(other.getAdsenseId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getLgnNm() == null) ? 0 : getLgnNm().hashCode());
        result = prime * result + ((getLgnPwd() == null) ? 0 : getLgnPwd().hashCode());
        result = prime * result + ((getDrawPwd() == null) ? 0 : getDrawPwd().hashCode());
        result = prime * result + ((getPNm() == null) ? 0 : getPNm().hashCode());
        result = prime * result + ((getSimplePNm() == null) ? 0 : getSimplePNm().hashCode());
        result = prime * result + ((getRealNm() == null) ? 0 : getRealNm().hashCode());
        result = prime * result + ((getSex() == null) ? 0 : getSex().hashCode());
        result = prime * result + ((getPho() == null) ? 0 : getPho().hashCode());
        result = prime * result + ((getIdcrd() == null) ? 0 : getIdcrd().hashCode());
        result = prime * result + ((getIdTyp() == null) ? 0 : getIdTyp().hashCode());
        result = prime * result + ((getMail() == null) ? 0 : getMail().hashCode());
        result = prime * result + ((getPic() == null) ? 0 : getPic().hashCode());
        result = prime * result + ((getOrgPic() == null) ? 0 : getOrgPic().hashCode());
        result = prime * result + ((getThirdLgnTkn() == null) ? 0 : getThirdLgnTkn().hashCode());
        result = prime * result + ((getRegTm() == null) ? 0 : getRegTm().hashCode());
        result = prime * result + ((getRefId() == null) ? 0 : getRefId().hashCode());
        result = prime * result + ((getUserStat() == null) ? 0 : getUserStat().hashCode());
        result = prime * result + ((getLstUpdTm() == null) ? 0 : getLstUpdTm().hashCode());
        result = prime * result + ((getLastUseTm() == null) ? 0 : getLastUseTm().hashCode());
        result = prime * result + ((getDrawCnt() == null) ? 0 : getDrawCnt().hashCode());
        result = prime * result + ((getMaxDrawCnt() == null) ? 0 : getMaxDrawCnt().hashCode());
        result = prime * result + ((getTrackId() == null) ? 0 : getTrackId().hashCode());
        result = prime * result + ((getRefTrackId() == null) ? 0 : getRefTrackId().hashCode());
        result = prime * result + ((getIfLockDraw() == null) ? 0 : getIfLockDraw().hashCode());
        result = prime * result + ((getLockInstruction() == null) ? 0 : getLockInstruction().hashCode());
        result = prime * result + ((getPNmEncrypt() == null) ? 0 : getPNmEncrypt().hashCode());
        result = prime * result + ((getDeviceCode() == null) ? 0 : getDeviceCode().hashCode());
        result = prime * result + ((getSubscribeCount() == null) ? 0 : getSubscribeCount().hashCode());
        result = prime * result + ((getDailyMaxTrackBonusesCnt() == null) ? 0 : getDailyMaxTrackBonusesCnt().hashCode());
        result = prime * result + ((getIfFsdReg() == null) ? 0 : getIfFsdReg().hashCode());
        result = prime * result + ((getGameId() == null) ? 0 : getGameId().hashCode());
        result = prime * result + ((getInviteDeviceNoAlikeTotal() == null) ? 0 : getInviteDeviceNoAlikeTotal().hashCode());
        result = prime * result + ((getAdsenseId() == null) ? 0 : getAdsenseId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", userId=").append(userId);
        sb.append(", lgnNm=").append(lgnNm);
        sb.append(", lgnPwd=").append(lgnPwd);
        sb.append(", drawPwd=").append(drawPwd);
        sb.append(", pNm=").append(pNm);
        sb.append(", simplePNm=").append(simplePNm);
        sb.append(", realNm=").append(realNm);
        sb.append(", sex=").append(sex);
        sb.append(", pho=").append(pho);
        sb.append(", idcrd=").append(idcrd);
        sb.append(", idTyp=").append(idTyp);
        sb.append(", mail=").append(mail);
        sb.append(", pic=").append(pic);
        sb.append(", orgPic=").append(orgPic);
        sb.append(", thirdLgnTkn=").append(thirdLgnTkn);
        sb.append(", regTm=").append(regTm);
        sb.append(", refId=").append(refId);
        sb.append(", userStat=").append(userStat);
        sb.append(", lstUpdTm=").append(lstUpdTm);
        sb.append(", lastUseTm=").append(lastUseTm);
        sb.append(", drawCnt=").append(drawCnt);
        sb.append(", maxDrawCnt=").append(maxDrawCnt);
        sb.append(", trackId=").append(trackId);
        sb.append(", refTrackId=").append(refTrackId);
        sb.append(", ifLockDraw=").append(ifLockDraw);
        sb.append(", lockInstruction=").append(lockInstruction);
        sb.append(", pNmEncrypt=").append(pNmEncrypt);
        sb.append(", deviceCode=").append(deviceCode);
        sb.append(", subscribeCount=").append(subscribeCount);
        sb.append(", dailyMaxTrackBonusesCnt=").append(dailyMaxTrackBonusesCnt);
        sb.append(", ifFsdReg=").append(ifFsdReg);
        sb.append(", gameId=").append(gameId);
        sb.append(", inviteDeviceNoAlikeTotal=").append(inviteDeviceNoAlikeTotal);
        sb.append(", adsenseId=").append(adsenseId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}